/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.yournamehere.server;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import java.sql.SQLException;

import org.yournamehere.client.GWTService;

/**
 *
 * @author Cristian
 */
public class GWTServiceImpl extends RemoteServiceServlet implements GWTService {
    @Override
    public String myMethod(String s) {
        ConexionDB conn=new ConexionDB();
        ConexionDB_1 conn2=new ConexionDB_1();
        ConexionDB_2 conn3=new ConexionDB_2();
		try {
			return (conn.obtener()+"\n"+conn2.obtener()+"\n"+conn3.obtener());
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
                        return "fallo";
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
                        return "fallo";
		}
	}
    }

